import Ember from 'ember';
import ListViewMinxin from 'emberworkspace/mixins/list-view-mixin';

export default Ember.Controller.extend(ListViewMinxin, {
  queryParams: ['page', 'size', 'q'],
  pageTitle: "用户管理",
  pageSubTitle: "编辑用户",
  phrase: "",
  modelName: "person",
  menus: Ember.computed(function() {
    return this.get('commonMenus');
  }),
  actions: {
    menuClicked(mname) {
        this.defaultMenuHandler(mname);
      },
      searchUser() {
        var ph = this.get('phrase') ? this.get('phrase') : "没有";
        alert("you are searching: " + ph + ", but i'm not ready now.");
      }
  }
});
